home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Window / c / AutoHelp next >
Text File  |  1995-07-09  |  868b  |  32 lines

  1. #include "DeskLib:Wimp.h"
  2. #include "DeskLib:Event.h"
  3. #include "DeskLib:Window.h"
  4.  
  5.  
  6. extern BOOL Window_HelpHandler(event_pollblock *event, void *reference);
  7.  
  8.  
  9. /* NOTE:
  10.  * By #defining "USE_EVENTMSG" on compilation, the HelpHandler will be
  11.  * called ONLY for a HelpRequest message, but this will also pull in the
  12.  * "EventMsg" code.
  13.  *
  14.  * This function is basically here to show you how to include the
  15.  * Window_HelpHandler under your own steam, using either EventMsg or Event
  16.  *
  17.  * use: #define USE_EVENTMSG 1
  18.  *
  19.  */
  20.  
  21.  
  22. extern BOOL Window_AutoHelp(window_handle window, icon_handle icon)
  23. {
  24. #ifdef USE_EVENTMSG
  25.   return(EventMsg_Claim(message_HELPREQUEST, window,
  26.                           Window_HelpHandler, NULL);
  27. #else
  28.   return(Event_Claim(event_USERMESSAGERECORDED, window, icon,
  29.                                                  Window_HelpHandler, NULL));
  30. #endif
  31. }
  32.